package com.guocheng.controller;

import com.guocheng.entity.AjaxResult;
import com.guocheng.modules.meet.service.MeetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/demo")
public class DemoController {

    private MeetService meetService;

    @Autowired
    public DemoController(MeetService meetService){
        System.out.println("controller注入一次");
        this.meetService = meetService;
    }

    @GetMapping("/demo")
    @ResponseBody
    public AjaxResult demo(){
        return AjaxResult.ok("成功");
    }
}
